<?php
/*************************************************************
*
*	@file:	include/class/display.class.php
*
*	@class:	display
*
*	@brief:	class that provide a whole support 
*				for display.
*
*	@author: Skype
*************************************************************/

class display
{
	/**
	*	@brief:	the error message
	*
	*	@access: public
	*
	*	@type: string
	*/
	public $error = '';
	
	/**
	*	@brief:	the target table
	*
	*	@access: public
	*
	*	@type: string
	*/
	protected $table = '';
	
	/**
	*	@brief:	set the error message
	*
	*	@access: protected
	*
	*	@params: $error, string contain the message of error.
	*
	*	@return: none
	*/
	protected function setErrorMessage($error)
	{
		$this->error = $error;
	}

	/**
	*	@brief:	set the target table
	*
	*	@access: public
	*
	*	@params: $table
	*
	*	@return: none
	*/
	public function setTable($table)
	{
		$this->table = $table;
	}

	/**
	 * 	@class constructor
	 */
	function __construct()
	{
	}
	
	/**
	*	@brief:	display items by userID
	*
	*	@access: public
	*
	*	@params: $uid
	*
	*	@return: array contains item infos
	*/
	public function displayItemByUid($uid, $columnUid = 'item_seller')
	{

	}

	/**
	*	@brief:	display new items
	*
	*	@access: public
	*
	*	@params: $itemNo
	*
	*	@return: array contains item infos
	*/
	public function displayItemByNewest($itemNo)
	{
		
	}
	
	/**
	*	@brief:	display an items by itemID list
	*
	*	@access: public
	*
	*	@params: $startPos, $itemPerPage
	*
	*	@return: array contains item IDs
	*/
	public function displayItemByID($itemID)
	{
		
	}
	
	/**
	*	@brief:	display items by SQL condition
	*
	*	@access: private
	*
	*	@params: $condition
	*
	*	@return: array contains item infos
	*/
	private function displayItemByCondition()
	{
		
	}
	
	/**
	*	@brief:	display items by tag
	*
	*	@access: public
	*
	*	@params: $tags, array contains taglist
	*
	*	@return: array contains item infos
	*/
	public function displayItemByTag($tags)
	{
		
	}
	